<!DOCTYPE html>
<html>
<head>
<style type="text/css">
div { display: none; }
</style>
</head>
<body>
<p>This tests pasting (InsertHTML) into an input element with a CSS rule div { display: none}.
You should see PASS below.</p>
<input type="text" value="FAIL">
<p><script>

if (window.testRunner)
    testRunner.dumpAsText();

var input = document.querySelector('input');
input.focus();
input.select();
document.execCommand('InsertHTML', false, 'PASS');

document.write(input.value);

</script></p>
</body>
</html>
